read -p "是否使用换源配置？(y/n): " choice
if [[ $choice == "y" ]]; then
    # 添加换源配置
    echo "使用清华源"
    sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
    apt update
    apt upgrade
else
    echo "使用默认源"

fi
cp -rf . ~
rm ~/init.sh
chmod 777 ~/frp/frpc
# 安装 OpenSSL
apt-get -y install openssl

pkg install python libexpat -y
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ flask pyDes requests pycryptodome

echo "使用 python ~/web.py 启动frp"

python ~/web.py